import { detailOrder } from '@/api/order.js';

export default {
	data() {
		return {
			orderSn: null,
			orderItemEntityList: [],
		};
	},
	onLoad(options) {
		this.orderSn = options.orderSn;
		this.loadData();
	},
	methods: {
		//生成确认单信息
		async loadData() {
			let params = {
				orderSn: this.orderSn
			}
			detailOrder(params).then(response => {
				this.orderItemEntityList = response.data.orderItemEntityList;
			});
		},
	}
}